package org.belkodevelop.token.domain;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import javax.persistence.*;

@Entity
@Table(name = "tokens")
public class Token implements Serializable {
    
    @Id
    @Column(length = 50, name = "value")
    private String value;
    
    @Column(name = "date_create", nullable = false)
    private Timestamp dateCreate = new Timestamp(new java.util.Date().getTime());
    
    public void setValue(String value) {
        this.value = value;
    }
    
    public String getValue() {
        return value;
    }
    
    public void setDateCreate(Timestamp date) {
        this.dateCreate = date;
    }
    
    public Timestamp getDateCreate() {
        return dateCreate;
    }
}
